package com.buka.communicate.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.buka.communicate.R;

import net.neiquan.applibrary.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/11/23 0023.
 */

public class FamilyCretaeActivity extends BaseActivity {
    @InjectView(R.id.familyPhoto)
    ImageView familyPhoto;
    @InjectView(R.id.familyName)
    EditText familyName;
    @InjectView(R.id.familyNameEdit)
    ImageView familyNameEdit;
    @InjectView(R.id.familyPlace)
    TextView familyPlace;
    @InjectView(R.id.familyDetail)
    EditText familyDetail;
    @InjectView(R.id.familyCreated)
    CardView familyCreated;

    @Override
    public int getRootViewId() {
        return R.layout.activity_family_create;
    }

    @Override
    public void setViews() {
        setTitleTv("创建家族");
    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.familyPhoto, R.id.familyPlace, R.id.familyCreated})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.familyPhoto:
                break;
            case R.id.familyPlace:
                break;
            case R.id.familyCreated:
                startActivity(new Intent(FamilyCretaeActivity.this, FamilyEditActivity.class));
                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.inject(this);
    }
}
